/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.ticket.schlealeadership.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.ticket.schlealeadership.entity.SchoolleaderLeadership;
import com.jeeplus.modules.ticket.schlealeadership.mapper.SchoolleaderLeadershipMapper;

/**
 * 评价领导班子Service
 * @author 刘明星
 * @version 2021-09-15
 */
@Service
@Transactional(readOnly = true)
public class SchoolleaderLeadershipService extends CrudService<SchoolleaderLeadershipMapper, SchoolleaderLeadership> {

	public SchoolleaderLeadership get(String id) {
		return super.get(id);
	}
	
	public List<SchoolleaderLeadership> findList(SchoolleaderLeadership schoolleaderLeadership) {
		return super.findList(schoolleaderLeadership);
	}
	
	public Page<SchoolleaderLeadership> findPage(Page<SchoolleaderLeadership> page, SchoolleaderLeadership schoolleaderLeadership) {
		return super.findPage(page, schoolleaderLeadership);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateGood(SchoolleaderLeadership schoolleaderLeadership){
		mapper.updateGood(schoolleaderLeadership);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateFine(SchoolleaderLeadership schoolleaderLeadership){
		mapper.updateFine(schoolleaderLeadership);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateGeneral(SchoolleaderLeadership schoolleaderLeadership){
		mapper.updateGeneral(schoolleaderLeadership);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updatePoor(SchoolleaderLeadership schoolleaderLeadership){
		mapper.updatePoor(schoolleaderLeadership);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateSpeakGood(SchoolleaderLeadership schoolleaderLeadership){
		mapper.updateSpeakGood(schoolleaderLeadership);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateSpeakFine(SchoolleaderLeadership schoolleaderLeadership){
		mapper.updateSpeakFine(schoolleaderLeadership);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateSpeakGeneral(SchoolleaderLeadership schoolleaderLeadership){
		mapper.updateSpeakGeneral(schoolleaderLeadership);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateSpeakPoor(SchoolleaderLeadership schoolleaderLeadership){
		mapper.updateSpeakPoor(schoolleaderLeadership);
	}
	@Transactional(readOnly = false)
	public void save(SchoolleaderLeadership schoolleaderLeadership) {
		super.save(schoolleaderLeadership);
	}
	
	@Transactional(readOnly = false)
	public void delete(SchoolleaderLeadership schoolleaderLeadership) {
		super.delete(schoolleaderLeadership);
	}
	
}